<!DOCTYPE html>
<html>
<head>
    <style>
        .odd-row { background-color: #f0f0f0; font-weight: bold; }
        #multiplication-table div { padding: 5px; margin: 2px; }
    </style>
</head>
<body>
    <div id="multiplication-table"></div>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const container = document.getElementById('multiplication-table');
            for (let i = 1; i <= 9; i++) {
                let rowText = '';
                for (let j = 1; j <= i; j++) {
                    rowText += `${j}*${i}=${j * i} `; // 使用标准乘号 ×
                }
                const rowDiv = document.createElement('div');
                rowDiv.textContent = rowText.trim();
                if (i % 2 === 1) rowDiv.classList.add('odd-row');
                container.appendChild(rowDiv);
            }
        });
    </script>
</body>
</html>